import request from '../request'

//添加常用处方
export const addDrRecipe = params => request.globalRequest(`aos/doctor/drRecipe/addDrRecipe`, 'POST', params)

//常用处方列表
export const commonRecipe = params => request.globalRequest(`aos/doctor/drRecipe/commonRecipe`, 'GET', params)

//编辑常用处方
export const editDrRecipe = params => request.globalRequest(`aos/doctor/drRecipe/editDrRecipe`, 'PUT', params)

//删除常用处方
export const removeDrRecipe = params => request.globalRequest(`aos/doctor/drRecipe/removeDrRecipe/${params.params.id}`, 'DELETE', params)


//医生处方详情
export const drRecipeDetail = params => request.globalRequest(`aos/doctor/drRecipe/drRecipeDetail/${params.params.id}`, 'GET', params)
 
//药房列表
export const getPharmacyList = () => request.globalRequest(`/aos/drugstore/selectList`, 'GET',{})
 